from decouple import RepositoryEnv, Config
import os
from pathlib import Path

env = os.getenv("ENV", "dev")  # 默认使用 dev 环境
base_dir = Path(__file__).resolve().parent.parent
env_file = base_dir / f".env.{env}"
print("Loading env from:", env_file)
config = Config(RepositoryEnv(str(env_file)))

DATABASE_URL = config("DATABASE_URL", default="")
MONGO_URL = config("MONGO_URL", default="")
DB_TIMEZONE = config("DB_TIMEZONE", default="Asia/Shanghai")
